package ${packageName}.controller;

import ${packageName}.api.${applicationName}ServiceUrl;
import ${packageName}.domain.User;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by sivan on 2019/3/8.
 */
@RestController
@RequestMapping(${applicationName}ServiceUrl.SERVICE_NAME)
public class MainController {

    @ApiOperation("JSON格式显示")
    @GetMapping(${applicationName}ServiceUrl.SERVICE_NAME)
    public User getUser(){
        return new User("www", "www");
    }
}
